/**
   @version 1.31 2004-05-03
   @author Cay Horstmann
 */
package gui;

import javax.swing.*;
import java.awt.*;

public class NotAHelloWorld {
	public static void main(String[] args) {
		NotHelloWorldFrame frame = new NotHelloWorldFrame();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);
	}
}

/**
 * A frame that contains a message panel
 */

class NotHelloWorldFrame extends JFrame {
	public NotHelloWorldFrame() {
		setTitle("Not Hello World.");
		setSize(300, 200);

		NotHelloWorldPanel panel = new NotHelloWorldPanel();
		add(panel);
	}
}
/**
 * A panel that displays a message.
 */
class NotHelloWorldPanel extends JPanel {
	public void paintComponent(Graphics g) {
		super.paintComponent(g);

		g.drawString("Not a Hello, World program", MESSAGE_X, MESSAGE_Y);
	}

	public static final int MESSAGE_X = 75;
	public static final int MESSAGE_Y = 100;
}




